<?php

namespace backend\models;

use Yii;
use common\models\UserInfo;
use yii\helpers\ArrayHelper;
use yii\db\ActiveRecord;
use backend\models\Qr;
use backend\models\PayTrade;

class GrpUnit extends \yii\db\ActiveRecord
{
	public $grPBrandHead;
	public $imgurl;
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'grp_unit';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {    	
        return [
            [['id'], 'integer'],
        	[['name'], 'unique','message'=>'名称已存在，请输入新名称'],
        ];
    }
    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => Yii::t('app','名称'),
        ];
    }
    
    
}
